package edu.tgc.entity.file;

import java.util.Date;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import edu.tgc.entity.system.SysUser;

@Entity
public class FileBidding extends FileResource {

    private static final long serialVersionUID = -904262324191815614L;

    protected Boolean audit;
    protected Date auditTime;
    @JsonIgnoreProperties(value = { "createUser", "lastModifyUser", "createTime", "lastModifyTime", "dept", "description", "enabled", "ip", "username", "sort", "address", "dutyStatus", "education", "email", "hireDate", "idNo", "leaveDate", "major",
            "qq", "sex", "status", "telphone" })
    protected SysUser auditUser;
    protected String description;

    public FileBidding() {
    }

    public FileBidding(UUID id) {
        super(id);
    }

    public Boolean getAudit() {
        return this.audit;
    }

    @Temporal(TemporalType.TIMESTAMP)
    public Date getAuditTime() {
        return this.auditTime;
    }

    @ManyToOne
    public SysUser getAuditUser() {
        return this.auditUser;
    }

    @Column(length = 512)
    public String getDescription() {
        return this.description;
    }


    public void setAudit(Boolean audit) {
        this.audit = audit;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public void setAuditUser(SysUser auditUser) {
        this.auditUser = auditUser;
    }

    public void setDescription(String description) {
        this.description = description;
    }


}
